package com.inno.log.service;

import com.inno.log.entity.OperationLog;
import com.inno.log.entity.OperationLogVO;
import com.inno.log.entity.PageResult;

/**
 * (OperationLog)表服务接口
 *
 * @author makejava
 * @since 2025-01-20 11:45:26
 */
public interface OperationLogService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    OperationLog queryById(Long id);

    /**
     * 新增数据
     *
     * @param operationLog 实例对象
     * @return 实例对象
     */
    OperationLog insert(OperationLog operationLog);

    /**
     * 修改数据
     *
     * @param operationLog 实例对象
     * @return 实例对象
     */
    OperationLog update(OperationLog operationLog);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);

    PageResult<OperationLogVO> queryPage(OperationLog operationLog);
}
